<%@ Page language="c#" Codebehind="WaitingPage.aspx.cs" AutoEventWireup="True" Inherits="SFPortal.Forms.WaitingPage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
	<head>
		<title>Waiting Page - Scenario Framework</title>
		<script type="text/javascript" language="javascript">
            if(document.getElementById) {
	            var upLevel = true;
	            }
            else if(document.layers) {
	            var ns4 = true;
	            }
            else if(document.all) {
	            var ie4 = true;
	            }

            function showObject(obj) 
	            {
		            if (ns4) obj.visibility = "show";
		            else if (ie4 || upLevel) 
			            obj.style.visibility = "visible";
	            }
            function hideObject(obj) {
	            if (ns4) {
		            obj.visibility = "hide";
		            }
	            if (ie4 || upLevel) {
		            obj.style.visibility = "hidden";
		            }
	            }
		</script>
	</head>
	<body>
		<form id="Form1" method="post" runat="server">
		    <div style="vertical-align: middle; height: 100%;">
			<table width="100%" align="center">
				<tr valign="top">
				    <td valign="top" align="right">
                        <img src="../../Images/sf.png" style="height: 95px; width: 90px" alt="Scenario Framework" />
					</td>
					<td align="left" valign="top">
					    <table cellspacing="0" cellpadding="0" border="0">
						    <tr>
							    <td align="center">Richiesta sottomessa al Process Server.......</td>
							</tr>
							<tr align="center">
							    <td>
								    <div id="Waiting">
								        <asp:image id="Image1" runat="server" ImageUrl="~/Images/wait.gif"></asp:image>
								    </div>
									<div id="NoWaiting" style="VISIBILITY: hidden"><asp:label id="lblMessage" Runat="server" Visible="False">Errore! Verifica la lista dei tuoi messaggi</asp:label><br>
									    <asp:button id="btnOK" Runat="server" Visible="true" Text="OK" onclick="btnOK_Click"></asp:button>
									</div>
                                </td>
                            </tr>
                        </table>
                    </td>
				</tr>
			</table>
			</div>
			<%Response.Flush();%>
			<%this.MakeAction();%>
			<script type="text/javascript" language="javascript">
				var splash=null;
				if(upLevel) {splash = document.getElementById("Waiting");}
				else if(ns4) {splash = document.Waiting;}
				else if(ie4) {splash = document.all.Waiting;}
				hideObject(splash);
				
				if(upLevel) {splash = document.getElementById("NoWaiting");}
				else if(ns4) {splash = document.NoWaiting;}
				else if(ie4) {splash = document.all.NoWaiting;}
				showObject(splash);
			</script>
			<script type="text/javascript" language="javascript">
					var theform = document.Form1;
					/*theform.__EVENTTARGET.value = eventTarget;
					theform.__EVENTARGUMENT.value = eventArgument;*/
					theform.submit();
			</script>
		</form>
	</body>
</html>
